package com.yky.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 伦理委员会备案
 * 
 * @author vimes
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_ethics_committee_records")
public class EthicsCommitteeRecords {

	private Integer id;
	private String name; // 伦理委员会名称
	private String memberName; // 伦理委员会组成成员名单
	private String isConstitution; // 是否有伦理委员会章程
	private String isWorkingSystem; // 是否有工作制度或工作程序
	private String telphone; // 伦理委员会联系电话
	private String email; // 伦理委员会电子邮箱
	private String attachmentPath; // 批准附件
	private String practiceRegistrationAuthority; // 备案执业登记机关

	private Organization organization; // 所属机构
	private Province province; // 所属省份

	private String status; // 状态（0-未审核 1-审核通过 2-审核未通过）
	private String reason; // 原因

	private User createUser; // 创建人
	private String createTime; // 创建日期
	
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "member_name")
	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Column(name = "is_constitution")
	public String getIsConstitution() {
		return isConstitution;
	}

	public void setIsConstitution(String isConstitution) {
		this.isConstitution = isConstitution;
	}

	@Column(name = "is_working_system")
	public String getIsWorkingSystem() {
		return isWorkingSystem;
	}

	public void setIsWorkingSystem(String isWorkingSystem) {
		this.isWorkingSystem = isWorkingSystem;
	}

	@Column(name = "telphone")
	public String getTelphone() {
		return telphone;
	}

	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	@Column(name = "email")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "attachment_path")
	public String getAttachmentPath() {
		return attachmentPath;
	}

	public void setAttachmentPath(String attachmentPath) {
		this.attachmentPath = attachmentPath;
	}

	@Column(name = "practice_registration_authority")
	public String getPracticeRegistrationAuthority() {
		return practiceRegistrationAuthority;
	}

	public void setPracticeRegistrationAuthority(
			String practiceRegistrationAuthority) {
		this.practiceRegistrationAuthority = practiceRegistrationAuthority;
	}

	@ManyToOne
	@JoinColumn(name = "organization_id")
	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	@ManyToOne
	@JoinColumn(name = "province_id")
	public Province getProvince() {
		return province;
	}

	public void setProvince(Province province) {
		this.province = province;
	}

	@Column(name = "status")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@ManyToOne
	@JoinColumn(name = "create_user_id")
	public User getCreateUser() {
		return createUser;
	}

	public void setCreateUser(User createUser) {
		this.createUser = createUser;
	}

	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

}
